﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using SSP;

namespace SSPDemo
{
    class Credits : SSPScene
    {
        SSPSprite credit;
        SSPMenuItem returnMenu;

        public Credits()
        {
            isInputEnabled = true;

            credit = new SSPSprite("credits");
            credit.position = new Vector2(640, 360);
            this.addChild(credit);

            returnMenu = new SSPMenuItem("MenuReturn", 421, 237);
            returnMenu.position = new Vector2(825, 625);
            this.addChild(returnMenu);

            returnMenu.selected();

            
        }

        public override void DoPlayerAction(PlayerAction action)
        {
            if (action == PlayerAction.Jump)
            {
                SSPDirector.Instance.replaceScene(new MainMenuScene());
            }
        }

    }
}
